<?php

	/**
	 * @see Bike_Js_Ext_ResponseHandler_Failure
	 */
	require_once 'Bike/Js/Ext/ResponseHandler/Failure.php';
	
	
	class Bike_Js_Ext_form_submit_Failure extends Bike_Js_Ext_ResponseHandler_Failure
	{
		/*protected function getDefaultSettings()
		{
			$js = $this->js();
			return $this->mergeDefaultSettings(parent::getDefaultSettings(), array(
				'args' => array($js->form, $js->action),
                'bodyAdapter' => array(                	
                	($js->isDebug()
                		? $js->CodeContainer(array(
                			$js->alert($js->action->response),
                			$js->alert('Failure'),
                		))
                		: ''),
                	$js->_var($js->response)->_val($js->action->response),
                	$js->_var($js->object)->_val($js->action->form),
                ),
			));
		}*/
		
		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$this->setSettings(array(
				'args' => array($js->form, $js->action),
                'bodyAdapter' => array(                	
                	($js->isDebug()
                		? $js->CodeContainer(array(
                			$js->alert($js->action->response),
                		))
                		: ''),
                	$js->_var($js->response)->_val($js->action->response),
                	$js->_var($js->object)->_val($js->action->form),
                ),
			));
		}
	}
